const namespace = 'articleWagesModel';
export default {
    namespace,
    state: {
        articleWagesVisible: false,
        articleWagesMsg: '',
        articleWagesPower: true
    },
    reducers: {
        setModal(state, action) {
            return {
                ...action.payload
            };
        }
    },
    effects: {
        *openModal(state, { put }) {
            yield put({
                type: 'setModal',
                payload: {
                    ...state.payload
                }
            });
        },
        *closeModal(state, { put }) {
            yield put({
                type: 'setModal',
                payload: {
                    articleWagesVisible: false
                }
            });
        }
    }
};
